st = "这里是大连"
st1 = st.encode("utf-8")
print(st1)  # b'\xe8\xbf\x99\xe5\x9c\xb0\xe6\x98\xaf\xe6\x9d\xad\xe5\xae\xb6'
st2 = st1.decode()
print(st2)  # 这里是大连
print(type(st2))  # <class 'str'>


# string operator
s1 = "这里是大连"
s2 = "这里是北京"
s3 = s1 + s2
print(s3)  # 这里是大连这里是北京

# repeat
s4 = s1 * 3
print(s4)  # 这里是大连这里是大连这里是大连

print("Yes\n" * 3)
